<div ng-include src="'tpl/public/header.html?1'"></div>
<div class="contents">
  <form class="form-horizontal" role="form" name="form" novalidate ng-submit="save()">

    <div class="form-group">
      <label class="col-sm-2 control-label"></label>
      <div class="col-sm-8">
        <button type="button" class="btn btn-default" ng-click="addDbfs();">新增担保方式</button>
      </div>
    </div>

    <div class="form-group">
      <label class="col-sm-2 control-label">担保方式</label>
      <div class="col-sm-8">
        <table class="table table-striped table-hover">
          <tr>
            <th style="width:250px">标题</th>
            <th>详情说明</th>
            <th></th>
          </tr>
          <tr ng-repeat="dbfs in dbfsAll">
            <td>
              <input type="text" class="form-control" autocomplete="off" ng-model="dbfs.bt" placeholder="最多10字">
            </td>
            <td>
              <textarea class="form-control" ng-model="dbfs.sm" placeholder="最多100字"></textarea>
            </td>
            <td>
              <button type="button" class="btn btn-default" ng-click="deleteDbfs($index);">删除</button>
            </td>
          </tr>
        </table>
      </div>
    </div>

    <div class="form-group" >
      <label class="col-sm-2 control-label">担保分析</label>
      <div class="col-sm-5">
        <textarea class="form-control" ng-model="dbfx" placeholder="最多500字"></textarea>
      </div>
    </div>

    <div class="form-group">
      <label class="col-sm-2 control-label">扩展表格</label>
      <div class="col-sm-8">
        <table style="" class="table table-striped table-bordered">
          <tr ng-repeat="kzbg in kzbgAll">
            <td class="text-muted" style="width:187px;">
              <input type="text" class="form-control" autocomplete="off" ng-model="kzbg.kzbg1" placeholder="最多10字">
            </td>
            <td class="text-muted" style="width:187px;">
              <input type="text" class="form-control" autocomplete="off" ng-model="kzbg.kzbg2">
            </td>
            <td class="text-muted" style="width:187px;">
              <input type="text" class="form-control" autocomplete="off" ng-model="kzbg.kzbg3">
            </td>
            <td class="text-muted" style="width:187px;">
              <input type="text" class="form-control" autocomplete="off" ng-model="kzbg.kzbg4">
            </td>
          </tr>
        </table>
      </div>
    </div>

    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-5">
        <button type="submit" class="btn btn-default">提交</button>
      </div>
    </div>

  </form>
</div>
<div load-script src="'/static/jquery.jUploader-1.01.js?5'" call-back="" charset="utf-8" ></div>